/**
 *
 */
package com.test.service.impl;

import java.util.List;

import com.test.dao.UserDao;
import com.test.dao.impl.UserDaoImpl2;
import com.test.domain.User;
import com.test.service.UserService;

/**
 * @author Administrator
 * @date 2018年5月27日 下午3:21:26
 * 
 */
public class UserServiceImpl implements UserService {
	
	UserDao  userDao = new UserDaoImpl2();
	
	
	@Override
	public void add(User user) {
		userDao.add(user);
	}

	@Override
	public void mod(User user) {

	}
	@Override
	public void del(int id) {

	}

	@Override
	public List<User> query(User user) {
		return userDao.query(user);
	}

	@Override
	public int queryByNameAndPassword() {
		return 0;
	}

}
